<%@ page import="dart.Game" %>
<%@ page import="dart.PlayerGame" %>
<% playerGame = game.playerGames[game.currentPlayer]
person = playerGame.person
%>

<html>
<head>
	<title>${person.displayName}'s Turn</title>
	<meta name="layout" content="dart"/>
	<dart:css src="gamePlay/play.css"/>
	<g:javascript src="gamePlay/play.js"/>
</head>
<body onLoad="elements.load();">

<input type="hidden" id="scoreStart" value="${playerGame.currentScore()}">

<h1 style="${person.style()}">${person.displayName}</h1>
<table id="round" cellspacing="0">
	<tr>
		<td width="40%" valign="middle">
			<g:form method="post">
				<input type="hidden" id="hidden-id" name="id" value="${game.id}"/>
				<table id="throwData" cellspacing="0">
					<tmpl:throws attempts="3"/>

					<tr align="center" class="submit">
						<td colspan="4">
							<g:actionSubmit onClick="return trySubmit();" class="submit"
									value="OK" action="calculate" tabindex="4"/>
						</td>
						<td class="score"><span id="scoreTotal"></span></td>
					</tr>
				</table>
			</g:form>
		</td>
		<td valign="top">
			<tmpl:roundTable game="${game}" numRows="10"/>
		</td>
	</tr>
</table>
<p id="numAjaxCalls">0</p>
</body>
</html>